﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yto.Entities;

namespace com.ytocargo.Core.FlightPlanMakeLogs
{
    [Table("FLIGHT_PLAN_MAKE_LOG")]
    public class FlightPlanMakeLog : Entity
    {
        [Column("ID")]
        public override int Id { get => base.Id; set => base.Id = value; }

        [Column("FLIGHT_DATE")]
        public DateTime? FlightDate { get; set; }

        [Column("FLIGHT_NO")]
        [StringLength(20)]
        public string FlightNo { get; set; }

        [Column("DEP")]
        [StringLength(4)]
        public string Dep { get; set; }

        [Column("ARR")]
        [StringLength(4)]
        public string Arr { get; set; }

        [Column("AC_ID")]
        [StringLength(10)]
        public string AcId { get; set; }

        [Column("USER_NAME")]
        [StringLength(20)]
        public string UserName { get; set; }

        [Column("LOG_TIME")]
        public DateTime? LogTime { get; set; }

        [Column("FP_CONTENT")]
        [StringLength(1024*1024)]
        public string FpContent { get; set; }

        [Column("INPUT_OIL_FLAG")]
        public bool? InputOilFlag { get; set; }

        [Column("INPUT_OTHER_FLAG")]
        public bool? InputOtherFlag { get; set; }

        [Column("INPUT_OIL_USER")]
        [StringLength(20)]
        public string InputOilUser { get; set; }

        [Column("INPUT_OTHER_USER")]
        [StringLength(20)]
        public string InputOtherUser { get; set; }

        [Column("INPUT_OIL_TIME")]
        public DateTime? InputOilTime { get; set; }

        [Column("INPUT_OTHER_TIME")]
        public DateTime? InputOtherTime { get; set; }

        [Column("AFTN_ADDRESSES")]
        [StringLength(500)]
        public string AftnAddresses { get; set; }

        [Column("PLAN_ID")]
        public decimal? PlanId { get; set; }

        //发送标志
        [Column("SEND_FLAG")]
        public bool SendFlag { get; set; }
    }
}
